import type { ApiResponse } from './common';

export interface DashboardStats {
  userCount: number;
  reportCount: number;
}

export interface ChainDistribution {
  type: string;
  value: number;
}

export interface RecentActivity {
  id: string;
  type: 'report' | 'chat';
  title: string;
  time: string;
}

export interface DashboardState {
  stats: DashboardStats;
  distribution: ChainDistribution[];
  activities: RecentActivity[];
  loading: {
    stats: boolean;
    distribution: boolean;
    activities: boolean;
  };
}

export interface DashboardResponse {
  stats: ApiResponse<DashboardStats>;
  distribution: ApiResponse<ChainDistribution[]>;
  activities: ApiResponse<RecentActivity[]>;
}